<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <%@include file="/res/include/base-head.jsp"%>
	<%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/draw/drawBase.js"></script>
  </head>
  <body>
<form id="data-form">
	<div class="form_item">
	<input  type="hidden" name="id" value="${drawBaseVo.id}"/>
		 <dl>
        <dt>名称：</dt>
        <dd><input type="text" name="name" value="${drawBaseVo.name }" class="txt grid-25" maxlength="32"/></dd>
    </dl>
    <dl>
			<dt>描述：</dt>
			<dd>
				<textarea class="txt grid-75" id="remark" name="remark" oninput="admin.drawBase.netMsgChange('remark',360)" onpropertychange="admin.drawBase.netMsgChange('remark',360)" rows="4" >${drawBaseVo.remark}</textarea>
			</dd>
		</dl>
		<dl>
        	<dt>抽奖类型：</dt>
        	 <c:choose>
	        	 <c:when test="${drawBaseVo.type==1}">
	        	 	<dd>社区活动</dd>
	        	 </c:when>
	        	 <c:when test="${drawBaseVo.type==2}">
	        	 	<dd>圈子活动</dd>
	        	 </c:when>
	        	 <c:when test="${drawBaseVo.type==3}">
	        	 	<dd>其他</dd>
	        	 </c:when>
        	 </c:choose>
	    </dl>
		<dl>
        	<dt>适用范围：</dt>
        	 <c:choose>
	        	 <c:when test="${drawBaseVo.rangeType==1}">
	        	 	<dd>平台抽奖(通用)</dd>
	        	 </c:when>
	        	 <c:when test="${drawBaseVo.rangeType==2}">
	        	 	<dd>社区抽奖</dd>
	        	 </c:when>
        	 </c:choose>
	    </dl>
	    <dl>
			<dt>抽奖社区：</dt>
			<dd>
				<c:out value='${drawBaseVo.communityName}' />
			</dd>
		</dl>
     <dl>
        <dt>开始时间：</dt>
	       <dd>
	       		<fmt:formatDate var="startAt" value="${drawBaseVo.startAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
	       		<input id="startAt" type="text" class="txt easyui-datetimebox grid-15" name="startAt" value="${startAt}" data-options="required:false,validType:'datetime'" />
	       </dd>
    	</dl>
   <dl>
        <dt>结束时间：</dt>
        <dd>
        	<fmt:formatDate var="endAt" value="${drawBaseVo.endAt}" pattern="yyyy-MM-dd HH:mm:ss"/>
        	<input id="endAt" type="text" class="txt easyui-datetimebox grid-15" name="endAt" value="${endAt}" data-options="required:false,validType:'datetime'" />
        </dd>
    </dl>
		<p class="page_btn"><input type="button" id="saveBtn" value="保存" class="btn_blue" onclick="admin.drawBase.update();"/></p>
	</div>
</form>
</body>
</html>
